//
//  YMLotteryModel.h
//  轮盘抽奖
//
//  Created by Andrew on 2018/7/18.
//  Copyright © 2018年 Andrew. All rights reserved.
//
/**
 中奖的model
 */

#import <Foundation/Foundation.h>

@interface YMLotteryModel : NSObject

@property (copy, nonatomic) NSString *name;     //奖品名称
@property (assign, nonatomic) NSInteger index;  //奖品的下标,唯一
@property (copy, nonatomic) NSDecimalNumber *probability;   //概率
@property (assign, nonatomic) NSInteger count;              //剩余张数 -1为无穷张
@property (assign, nonatomic) BOOL isProbabilityChage;      //概率是否随张数改变。
@property (copy, nonatomic) NSMutableArray *probabilityArray;   //isProbabilityChage = YES 时有用
@property (assign, nonatomic) NSInteger minIndex;           //中奖最小值，包括
@property (assign, nonatomic) NSInteger maxIndex;           //中奖的最大值，不包括

@end
